package com.huawei.appgallery.foundation.ui.framework.uikit;

import android.os.Bundle;
import androidx.fragment.app.Fragment;
import o.cjo;
import o.cjs;
import o.cjt;
import o.ckx;

public class ContractFragment<T extends cjo> extends Fragment {
    public T ˆ() {
        Bundle ˊॱ = ˊॱ();
        if (ˊॱ == null) {
            return null;
        }
        T ˉॱ = ˉॱ();
        new cjt().ॱ(ˊॱ, ˉॱ);
        return ˉॱ;
    }

    private T ˉॱ() {
        try {
            return (cjo) cjs.ˏ(getClass()).newInstance();
        } catch (InstantiationException e) {
            ckx.ˎ.ˊ("ContractFragment", "makeParam error: " + e.toString());
        } catch (IllegalAccessException e2) {
            ckx.ˎ.ˊ("ContractFragment", "makeParam error: " + e2.toString());
        }
        return null;
    }

    public <U, R extends Class> U ˊ(R r) {
        return r.isInstance(this) ? this : null;
    }
}
